package com.freejava.testmongodb.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document
public class MyLoginLog implements Serializable {
    private Integer id;
    // 登录者ID
    private String userId;
    // 登录者用户名
    private String username;
    // 登录者ip
    private String ip;
    // 登录时间
    private long created;
}
